<?php

/**
 * products actions.
 *
 * @package    semramode
 * @subpackage products
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class productsActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeIndex(sfWebRequest $request)
  {
    $this->categorys = Doctrine::getTable('category')->getAll();
      $this->product = Doctrine::getTable('product')->find($request->getParameter('id'));

    $breadcrumb = new breadcrumb();
    $this->breadcrumb = $breadcrumb->addProduct($this->getUser(), $this->product->getName());
    $this->getUser()->setAttribute('breadcrumb', $this->breadcrumb);
    $this->getResponse()->setSlot('afspraakform', $this->getPartial('content/afspraakform'));

  }
}
